﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WebEntities.Models.Framework
{
    public class WebsiteConfig
    {
        public int ArgID { get; set; }
        public string BackgroundImage { get; set; }
        public string BackgroundRepeat { get; set; }

        public static WebsiteConfig AsWebsiteConfig(FW_SiteArgs fwargs)
        {
            WebsiteConfig webcfg = new WebsiteConfig();
            if (fwargs != null)
            {
                webcfg.ArgID = fwargs.ArgID;
                webcfg.BackgroundImage = fwargs.BackgroundImage;
                webcfg.BackgroundRepeat = fwargs.BackgroundRepeat;
            }
            return webcfg;
        }
    }
}
